import os

import pytest
from utils.commont import send_mail
from utils.file_wj import file_path
if __name__ == '__main__':
    # 这是cjc分支的
    pytest.main(["./TestCase/test_Case.py","-s","--alluredir","./temp","--clean-alluredir"])
    os.system("allure generate -o ./temp   allure_report --clean")
    send_mail([file_path+r"\allure_report\index.html",file_path+r"\logs\login.log"])